/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kidIcarus.decorator;

import com.kidIcarus.model.value.ObjectFactory;
import com.kidIcarus.model.value.Values;
import java.io.File;

/**
 *
 * @author squarezty
 */
public class MyType {

    Values values;
    ObjectFactory oFactory;

    public MyType() {
        File file = new File("src/com/kidIcarus/resources/xml/value/values.xml");
        try {
            javax.xml.bind.JAXBContext jaxbCtx = javax.xml.bind.JAXBContext.newInstance(Values.class);
            javax.xml.bind.Unmarshaller unmarshaller = jaxbCtx.createUnmarshaller();
            values = (Values) unmarshaller.unmarshal(file);

        } catch (javax.xml.bind.JAXBException ex) {
            // XXXTODO Handle exception
            java.util.logging.Logger.getLogger("global").log(java.util.logging.Level.SEVERE, null, ex); //NOI18N
        }
    }

    public Values getValue() {
        return this.values;
    }

    public static void main(String[] args) {
        File file = new File("src/com/kidIcarus/resources/xml/value/values.xml");
        try {
            Values values = null;
            javax.xml.bind.JAXBContext jaxbCtx = javax.xml.bind.JAXBContext.newInstance(Values.class);
            javax.xml.bind.Unmarshaller unmarshaller = jaxbCtx.createUnmarshaller();
            values = (Values) unmarshaller.unmarshal(file);
            System.out.println();
        } catch (javax.xml.bind.JAXBException ex) {
            // XXXTODO Handle exception
            java.util.logging.Logger.getLogger("global").log(java.util.logging.Level.SEVERE, null, ex); //NOI18N
        }

    }
}
